package com.food.dao.in;

import java.util.List;


import com.food.model.Product;

public interface ProductDAO_hiber {

	public abstract Product findByPrimaryKey(Integer pid);

	public abstract void insert(Product bean);

	public abstract void delete(Integer pid);

	public abstract void update(Product bean);

	public abstract long getAllCount();

	public abstract List<Product> getAll(Integer offset, Integer length);

	public abstract List<Product> searchCust(Integer offset, Integer length, String searchField, String searchString);

	public abstract long searchCustCount(String searchField, String searchString);
	
	public abstract List<Product> getAll();

}
